package com.tang.oss.enums;


public enum StorageAdapterEnum {
    MINIO("minio", "使用minio搭建的oss服务"),
    ALI_OSS("ali_oss", "阿里云oss服务");
    public final String type;
    public final String desc;

    StorageAdapterEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static StorageAdapterEnum of(String type) {
        for (StorageAdapterEnum value : values()) {
            if (value.type.equals(type)) {
                return value;
            }
        }
        return null;
    }
}
